package com.youlu.campus.entity.order;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.CaInfo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 合单批次明细
 */
@Getter
@Setter
@Document(collection = "single_order_batch_detail")
public class SingleOrderBatchDetail extends EntityBase {
    @Indexed
    private String singleOrderBatchId;
    private String singleOrderBatchName;
    @Indexed
    private String activityId;
    private String activityName;
    private String caInfoId;
    private String caInfoName;
    private String caInfoImage;
    private String caMeterialConfigId;
    private String caMeterialConfigName;
    /**
     * 需求数量
     */
    private Integer reqStock;
    /**
     * 缺少库存
     */
    private Integer missStock;
    /**
     * 已经占用数量
     */
    private Integer occupiedStock;
    /**
     * 操作日志
     */
    private List<String> optLogs;
}
